package org.grow.client.controller;


import com.alibaba.dubbo.config.annotation.Reference;
import org.grow.zero.apis.NumberOneCommodityService;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: xwg
 * @CreateDate: 21-8-18
 */

@RestController
public class NumberOneController {

    @Reference
//    替代了@Autowire
    private NumberOneCommodityService numberOneCommodityService;

    @GetMapping("/testTime")
    public String testTime() {

        System.out.println("client got");
        String s = numberOneCommodityService.commodityTime();
        return s;
    }
}
